package com.whty.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserControllerRedis {
	
	@Autowired
    UserServiceRedis userService;
 
    @GetMapping("getUser")
    public String getUser() {
        return userService.getUser(001);
    }
    
    @GetMapping("/js/testUser")
    public String testUser() {
    	
    	System.out.println("测试shiro配置api入口");
        return userService.getUser(001);
    }


}
